from peewee import Model, CharField, IntegerField, FloatField  # 注意 FloatField
from app.extensions import db


class Movie(Model):
    title = CharField()
    year = IntegerField()
    rating_num = FloatField()  # 新增评分字段

    class Meta:
        database = db
        table_name = 'douban_movie'
